package com.train.resp;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.LocalDate;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * TicketPageResp
 * @author baitiaojun
 * @createDate 2025-03-14 15:17:16
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TicketPageResp {

    /**
     * id
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;
    /**
     * 会员id
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long memberId;
    /**
     * 乘客id
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long passengerId;
    /**
     * 乘客姓名
     */
    private String passengerName;
    /**
     * 日期
     */
    private LocalDate trainDate;
    /**
     * 车次编号
     */
    private String trainCode;
    /**
     * 箱序
     */
    private Integer carriageIndex;
    /**
     * 排号|01, 02
     */
    private String seatRow;
    /**
     * 列号|枚举[SeatColEnum]
     */
    private String seatCol;
    /**
     * 出发站
     */
    private String startStation;
    /**
     * 出发时间
     */
    private LocalTime startTime;
    /**
     * 到达站
     */
    private String endStation;
    /**
     * 到站时间
     */
    private LocalTime endTime;
    /**
     * 座位类型|枚举[SeatTypeEnum]
     */
    private String seatType;
    /**
     * 新增时间
     */
    private LocalDateTime createTime;
    /**
     * 修改时间
     */
    private LocalDateTime updateTime;
}
